from flask import Blueprint
from . import view

article_blueprint = Blueprint('article_blueprint', __name__)

# 添加笔记
article_blueprint.add_url_rule(rule='', methods=['POST'], view_func=view.add)

# 笔记列表
article_blueprint.add_url_rule(rule='', methods=['GET'], view_func=view.article_list)

# 笔记更新
article_blueprint.add_url_rule(rule='', methods=['PUT'], view_func=view.update)

# 笔记详情
article_blueprint.add_url_rule(rule='/detail', methods=['GET'], view_func=view.detail)

# 删除笔记
article_blueprint.add_url_rule(rule='', methods=['DELETE'], view_func=view.delete)
